﻿<CodeSnippetTabbed DocLink="https://docs.devexpress.com/Blazor/DevExpress.Blazor.DxComboBox-2#virtual-scrolling">
<CodeSnippetTabPage Text="Razor">
@(@"<DxComboBox Data=""@Data""
            ListRenderMode=""ListRenderMode.Virtual""
            FilteringMode=""DataGridFilteringMode.Contains""
            TextFieldName=""@nameof(Country.CountryName)""
            @bind-Value=""@Value"">
</DxComboBox>

@code {
    IEnumerable<Country> Data { get; set; }
    Country Value { get; set; }

    protected override async Task OnInitializedAsync() {
        Data = await CountryNamesService.LoadAsync();
    }
}")
</CodeSnippetTabPage>
<CodeSnippetTabPage Text="Country">
@(@"public class Country {
    public int Id { get; set; }
    public string CountryName { get; set; }
}")
</CodeSnippetTabPage>
</CodeSnippetTabbed>
